package cn.cpf.demo.starter;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * <b>Description : </b> 测试Bean类
 * <p>
 * <b>created in </b> 2021/6/3
 *
 * @author CPF
 * @since 1.0
 **/
@ConfigurationProperties(prefix = "my.bean")
public class MyBeanProperties {
    private String name = "cpf";
    private String email = "sinjar.chen@qq.com";
    private int money = Integer.MAX_VALUE;
    private int age = 26;
    private boolean gender = true;
    private String desc;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public boolean isGender() {
        return gender;
    }

    public void setGender(boolean gender) {
        this.gender = gender;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "MyBeanProperties{" +
                "name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", money=" + money +
                ", age=" + age +
                ", gender=" + gender +
                ", desc='" + desc + '\'' +
                '}';
    }
}